package com.coocaa.ops.api.v1.home.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.coocaa.ops.common.core.biz.dmp.entity.DmpRegistryRlsInfoEntity;
import com.coocaa.ops.common.core.biz.homepage.entity.HomeModuleContentConfigInfo;
import com.coocaa.ops.common.core.biz.module.entity.ModuleApkPluginInfo;
import com.coocaa.ops.common.core.biz.module.entity.ModuleInfoEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tangminghong
 * @date 2020-07-08
 */
public interface IModuleMapper extends BaseMapper<ModuleInfoEntity> {

    HomeModuleContentConfigInfo selectModuleByIdAndVersion(@Param("id") Integer id, @Param("version") Integer version);

    List<DmpRegistryRlsInfoEntity> selectModuleTabDmpInfo(@Param("moduleId") Integer moduleId, @Param("moduleVersion") Integer moduleVersion);

    List<ModuleApkPluginInfo> selectModuleApkPluginInfo(@Param("moduleType") String moduleType);
}
